package com.dubbo.provider.controller;

import com.dubbo.provider.pojo.TestDb2;
import com.dubbo.provider.service.ITestDb2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    ITestDb2Service testDb2Service;

    @RequestMapping("/test2")
    public void tt(){
        testDb2Service.save(new TestDb2(12));
    }
}
